'''
generator function
yield
yield from
'''

def gen():
    i = 0
    print('you start call a generator =)')
    yield -1
    while True:
        s = yield i
        print('recvied val:',s)
        i += 1
